const getters = {
  sidebar: state => state.app.sidebar, // 取app模块属性
  device: state => state.app.device,
  token: state => state.user.token, // 获取token
  userId: state => state.user.userInfo.userId, // 获取用户id
  avatar: state => state.user.userInfo.staffPhoto, // 获取用户头像
  username: state => state.user.userInfo.username, // 获取用户昵称
  company: state => state.user.userInfo.company, // 公司名称
  departmentName: state => state.user.userInfo.departmentName, // 部门名称
  routes: state => state.user.routes, // 获取路由信息
  points: state => state.user.userInfo?.roles?.points || [] // 获取控制功能按钮的权限标识
}
// 目的：为了更便捷访问
export default getters
